import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

import org.jdom2.JDOMException;

import nbp.currency.logic.CurrencyWrapper;
import nbp.currency.logic.NBPService;
import nbp.currency.logic.TypeOfExchange;

public class SaleDocumentService {

	/**
	 * @param args
	 * @throws ParseException
	 * @throws IOException
	 * @throws JDOMException
	 */
	public static void main(String[] args)  {
		NBPService nbpService;
		try {
			nbpService = NBPService.getInstance();
		
		
		
		Date today = new Date();
		List<CurrencyWrapper> currency = nbpService.getCurrency(today, today, TypeOfExchange.PURCHASE_SALE);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
